package de.clue.corpus.twitter.bean;

import java.io.File;

public class DataObject {
	
	private String path = "";
	private String name = "";
	private String text = "";
	
	private boolean init = false;
	
	public String getText() {
		if(!init){
			initXML();
		}
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	private void initXML() {
		
		try {
			
			File inputFile = new File(path);
			//TweetDocument tweetDocument = TweetDocument.Factory.parse(inputFile);
			//setText(tweetDocument.getTweet().getText());
			
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		
		
		
	}

}
